From: Jasper St. Pierre Date: Thu, 26 Apr 2012 20:17:34 +0000 (-0400) Subject: jhbuild wrapper: Don't crash if we can't start the shell X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6640 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b2847fedd30ac1217c8f238a0ebba763c848a824;p=gnome-shell.git jhbuild wrapper: Don't crash if we can't start the shell If start_shell throws an exception for whatever reason, the finally handler will run before shell has been set, leading to a "referencing an undefined local variable" error. --- diff --git a/src/gnome-shell-jhbuild.in b/src/gnome-shell-jhbuild.in index 4ad7a02e9..e2c0a745c 100755 --- a/src/gnome-shell-jhbuild.in +++ b/src/gnome-shell-jhbuild.in @@ -111,6 +111,7 @@ def run_shell(): if options.verbose: print "Starting shell" + shell = None try: shell = start_shell()